package test.wordprj.word.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * json对应字段
 */
public class MenuNode {
    private String id;
    private String name;//展示名称
    private boolean checked;//是否是要转为excel的标识
    private String pid; //父节点id
    private String type;
    private String bz;

    private boolean open;

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    private List<MenuNode> children = new ArrayList<>();

    // 构造方法、Getters和Setters
    public MenuNode() {}

    public MenuNode(String id, String name, boolean checked, String pid) {
        this.id = id;
        this.name = name;
        this.checked = checked;
        this.pid = pid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public List<MenuNode> getChildren() {
        return children;
    }

    public void setChildren(List<MenuNode> children) {
        this.children = children;
    }
}
